GraphProcessor

class GraphProcessor(discoveryPlugin: AbstractDiscoveryPlugin<*>, logger: AbstractLogger = DefaultGraphLogger(), fragmentPatcher: FragmentPatcher = FragmentPatcher( defaultExtension = discoveryPlugin.targetExtension, logger = logger, )) : AbstractGraphProcessor

GraphQL annotation processor that resolves graphql queries, mutations and fragments by a given file name declared in GraphQuery

Parameters

discoveryPlugin

A plugin which handles the discovery of .graphql files in this case we will be using AssetManagerDiscoveryPlugin

Constructors

Link copied to clipboard
constructor(discoveryPlugin: AbstractDiscoveryPlugin<*>, logger: AbstractLogger = DefaultGraphLogger(), fragmentPatcher: FragmentPatcher = FragmentPatcher( defaultExtension = discoveryPlugin.targetExtension, logger = logger, ))

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val graphFiles: Map<String, String>

Returns a pair of query or mutation name and graphql contents

Functions

Link copied to clipboard
open override fun getQuery(annotations: Array<out Annotation>): String?

Finds graphql content matching the value provided by GraphQuery